/**
 * Project Name:YCApiServer-dao
 * File Name:LyricsMapper.java
 * Package Name:com.yc.music.mapper.dao
 * Date:2016年5月7日下午4:18:00
 * Copyright (c) 2016 
 *
 */
package com.yc.music.mapper.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.yc.music.model.musicLyrics.LyricImp;
import com.yc.music.model.musicLyrics.LyricsCenter;
import com.yc.music.model.musicLyrics.MusicLyrics;
import com.yc.music.model.musicLyrics.SaveLyrics;
import com.yc.music.model.musicLyrics.UpdateLyrics;
import com.yc.music.model.musicWork.UpdateMusic;
import com.yc.music.model.musicWork.WorkBanner;
import com.yc.music.model.musicWork.WorkCenter;
import com.yc.music.model.searchvo.SearchWork;

/**
 * ClassName: LyricsMapper <br/>
 * Function: TODO ADD FUNCTION. <br/>
 * Reason: TODO ADD REASON(可选). <br/>
 * date: 2016年5月7日 下午4:18:00 <br/>
 *
 * @author panguixiang
 * @version 
 */
public interface LyricsMapper {
	
	public MusicLyrics getMusicLyricsById(@Param("id") Long id);
	
	public MusicLyrics getCooperateMusicLyricsByItemid(@Param("itemid") Long itemid);
	
	public void addOneLookNum(@Param("id") Long id) throws Exception;
	
	public List<LyricImp> getLyricImpList(@Param("uid") Long uid,
			@Param("start") int start, @Param("size") int size);
	
	public long saveLyrics(SaveLyrics obj) throws Exception;
	
	public void updateLyrics(SaveLyrics obj) throws Exception;
	
	public void updateLyricsStatus(UpdateLyrics updateLyrics) throws Exception;
	
	public void updateMusicZan(@Param("id") long id,@Param("iszan") int iszan)throws Exception;
	
	public List<SearchWork> searchLyricsList(@Param("title") String title, @Param("start") int start,
			@Param("size") int size);
	
	public void addLrycCommentNum(@Param("id") long id,@Param("opt") int opt);
	
	public void deleteById(@Param("id") long id);
	
	public List<LyricsCenter> lyrcisOtherList(@Param("uid") Long uid,
			@Param("start") int start, @Param("size") int size,@Param("status") Integer status);
	
	public List<LyricsCenter> lyrcisMyList(@Param("uid") Long uid,
			@Param("start") int start, @Param("size") int size);
	
	public WorkBanner getLyrWorkBannerById(@Param("id") Long id);
	
	public MusicLyrics getShareLyricById(@Param("id") Long id);
	
	public int getCountLyricsByUid(@Param("uid") Long uid)throws Exception;
	
	public int getCountLyricsByOtherUid(@Param("uid") Long uid)throws Exception;
	
	public int getLyricsByPicUrl(@Param("picurl") String picurl)throws Exception;
	
	
}
